include @topdir@/build/settings

OBJS=svnNotifierUtil.o
DAEMON_OBJS=svnNotifierDaemon.o
CLIENT_OBJS=svnNotifierClient.o

INCLUDES=$(SVN_INCLUDES) $(XML_INCLUDES) $(XSLT_INCLUDES)
LDFLAGS=$(APR_LDFLAGS) $(SVN_LDFLAGS) $(XML_LDFLAGS) $(XSLT_LDFLAGS) -lsvn_client-1
CFLAGS=$(APR_CFLAGS)

all:	daemon client

daemon:  $(OBJS) $(DAEMON_OBJS)
	@$(CC) $(LDFLAGS) $(RPATH) -o svnNotifierDaemon \
	$(OBJS) $(DAEMON_OBJS)
	@echo "\tsvnNotifierDaemon built"

client:	svnNotifierClient.o
	@$(CC) $(LDFLAGS) $(RPATH) -o svnNotifierClient \
	svnNotifierClient.o
	@echo "\tsvnNotifierClient built"

test:	daemon svnNotifierTest.o
	@$(CC) $(LDFLAGS) $(RPATH) -o svnNotifierTest \
	$(OBJS) svnNotifierTest.o
	@echo "\tsvnNotifierTest built"

clean:
	@rm -f *.so *.o
	@rm -f svnNotifierDaemon svnNotifierTest svnNotifierClient

